package com.xing.feign.FallbackFactory;

import com.xing.Utils.Result;
import com.xing.feign.RoomTagFeign;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2024/4/27 16:48
 */
@Component
public class RoomTagFeignFallbackFactory implements FallbackFactory<RoomTagFeign> {
    @Override
    public RoomTagFeign create(Throwable cause) {
        return new RoomTagFeign() {
            @Override
            public Result getRoomTagByRoomId(Long roomId) {
                return new Result();
            }
        };
    }
}
